<!DOCTYPE html>
<html>

<head>
    <title>宜搜音乐</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/music.css">
</head>

<body>
    <div class="h-i">
        <a href="../index.html" id="logo" class="cf">
            <img src="../img/logo (1).png">
        </a>
        <nav id="nav1" class="cf">
            <a href="../index.html" class="n-i">网页</a>
            <a href="http://book.easou.com/?wver=ta" class="n-i">小说</a>
            <span class="n-i n-n">音乐</span>
        </nav>
    </div>
    <div class="container zx">
        <!-- Nav tabs -->
        <ul class="nav nav-tabs" role="tablist">
            <li class="nav-item">
                <a class="nav-link active" data-toggle="tab" href="#home">推荐</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" data-toggle="tab" href="#menu1">彩铃</a>
            </li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <div id="home" class="container tab-pane active">
                <div class="zx1">
                    <div class="cont">
                        <div class="swiper">
                            <div class="swiperList"><img src="../img/a1.jpg" alt=""></div>
                            <div class="swiperList"><img src="../img/a2.jpg" alt=""></div>
                            <div class="swiperList"><img src="../img/a3.jpg" alt=""></div>
                        </div>
                        <div class="left"></div>
                        <div class="right"></div>
                        <div class="page">
                            <!-- 分页器 -->
                        </div>
                    </div>
                </div>
                <section>
                    <h3 class="index-title">新歌速递</h3>
                    <ul class="ge" avalonctrl="list">
                        <!-- <li>
                            <i class="ge1"></i>
                            <span class="bc">
                                <p class="p1">青春赋</p>
                                <p class="p2">刘雨昕</p>
                            </span>
                            <i class="temp"></i>
                            <i class="bell"></i>
                        </li> -->
                    </ul>
                </section>
            </div>
            <div id="menu1" class="container tab-pane fade">
                <ul class="cl"></ul>
            </div>
        </div>
    </div>
    
    <div id="f-c">
        <a href="">免责声明</a><br>
        ©2022&nbsp;easou&nbsp;
        ICP证：
        <a href="https://beian.miit.gov.cn/" target="_blank" style="color: #aaa;">粤ICP备05143185号</a>&nbsp;
        粤B2-20100029&nbsp;
        <a href="http://mp3.easou.com/picture/2222-550.jpg" target="_blank">粤网文[2019]2222-550号</a>&nbsp;
         <a style="height: 20px; line-height: 20px; margin: 0px 0px 0px 5px; color: #939393;" target="_blank" href="http://wap.appeasou.com:80/beian.jsp">中华人民共和国网络出版服务许可证：（署）网出证（粤）字第025号</a>&nbsp;
         <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030402000665" style="display: inline-block; text-decoration: none; height: 20px; line-height: 20px;"><img src="../img/jinghui.png" style="vertical-align: -2px;width: 15px;display: inline-block;margin-left: 10px;">
         <p style="height: 20px;line-height: 20px;margin: 0px 0px 0px 5px;color: #939393;display: inline-block;">粤公网安备44030402000665号</p></a>&nbsp;
         <a target="_blank" href="http://www.12377.cn/" style="display: inline-block; text-decoration: none; height: 20px; line-height: 20px;"><img src="../img/lan.png" style="width: 24px;vertical-align: -4px;display: inline-block;margin-left: 12px;">
         <p style="height: 20px;line-height: 20px;margin: 0px 0px 0px 1px;color: #939393;display: inline-block;">中国互联网举报中心</p></a>
        
    </div>

</body>
<script src="../js/jquery.min.js"></script>
<script src="../js/music.js"></script>
<script>
    let host = "http://localhost:3000";
    $.ajax({
        type: "get",
        url: host + "/musicSearchAll",
        success: function (response) {
            console.log(response.data);
            $.each(response.data, function (index, item) {
                // console.log(item.Song);
                var str = `
                <li>
                            <i class="ge1">${item.id}</i>
                            <span>
                                <p class="p1">${item.Song}</p>
                                <p class="p2">${item.name}</p>
                            </span>
                            <i class="temp"></i>
                            <i class="bell"></i>
                        </li>
                    `
                $(".ge").append(str)
            });
        }
    });
    $.ajax({
        type: "get",
        url: host + "/cailingSearchAll",
        success: function (response) {
            // console.log(response.data);
            $.each(response.data, function (index, item) {
                // console.log(item.Song);
                var str = `
                <li>
                            <i class="ge1">${item.id}</i>
                            <span>
                                <p class="p1">${item.song}</p>
                                <p class="p2">${item.name}</p>
                            </span>
                            <i class="temp"></i>
                            <i class="bell"></i>
                        </li>
                    `
                $(".cl").append(str)
            });
        }
    });
</script>

</html>